#include <iostream>

#define N 10

inline int max(int a, int b)
{
  return a>b?a:b;
}

int main(){
  int nums[N]={1,2,3,4,10,6,7,8,9,5};
  for(int i=0;i<N;i++){
    std::cout<<nums[i]<<" ";
  }
  int maxNum=nums[0];
  for(int i=1;i<N;i++){
    maxNum=max(maxNum,nums[i]);
  }
  std::cout << "中最大值是：" << maxNum << std::endl;
  return 0;
}
